package model

import "time"

type NewsModel struct {
	Id                 int       `json:"id" gorm:"type:int(11) auto_increment; NOT NULL; primary_key"`
	TypeClassifyId     int       `json:"type_classify_id" gorm:"type:int(11); COMMENT:'类型分类id'"`
	BusinessClassifyId int       `json:"business_classify_id" gorm:"type:int(11); COMMENT:'业务分类id'"`
	DraftsLogsId       int       `json:"drafts_logs_id" gorm:"type:int(11); COMMENT:'任务id'"`
	QuestionAnswerId   int       `json:"question_answer_id" gorm:"type:int(11); COMMENT:'问答id'"`
	Title              string    `json:"title" gorm:"type:varchar(255); COMMENT:'标题'"`
	SeoDesc            string    `json:"seo_desc" gorm:"type:varchar(255); COMMENT:'描述'"`
	SeoKeyword         string    `json:"seo_keyword" gorm:"type:varchar(255); COMMENT:'seo key'"`
	Content            string    `json:"content" gorm:"type:text; COMMENT:'简介'"`
	Text               string    `json:"text" gorm:"type:text; COMMENT:'正文'"`
	SyncStatus         int       `json:"sync_status" gorm:"type:tinyint(1);  COMMENT:'推送状态'"`
	SyncAt             time.Time `json:"sync_at" gorm:"type:datetime; COMMENT:'推送 时间'"`
	MkId               string    `json:"mk_id" gorm:"type:varchar(255); COMMENT:'mk id'"`
	CreatedAt          time.Time `json:"created_at" gorm:"type:timestamp"`
	UpdatedAt          time.Time `json:"updated_at" gorm:"type:timestamp"`
}

func (NewsModel) TableName() string {
	return "news"
}
